package com.google.gwt.sample.dynatablerf.shared;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class ConvertUtilShared {

	@SuppressWarnings({ "rawtypes", "unchecked" })
	public static List convertToList(Collection collection) {
		List list;
		if (collection instanceof List)
			list = (List) collection;
		else
			list = new ArrayList(collection);
		return list;
	}
}
